package com.yoomiito.app.net

import com.alibaba.fastjson.JSONObject
import com.yoomiito.app.utils.L
import com.yoomiito.app.utils.encrypt.AESUtils

object RequestParams {
    /**
     * 参数加密
     */
    fun encrypt(params:HashMap<String,String>):String{
        val jsonObject = JSONObject()
        for (param in params.keys){
            jsonObject[param] = params[param]
        }
        return AESUtils.rsaEncrypt(jsonObject.toJSONString())
    }
}